<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/20
 * Time: 16:04
 */

namespace app\index\controller;


use app\index\model\UserModel;
use think\Controller;

class phone extends Controller
{
    public function vailatePhone()
    {
        if(request()->isPost()){
            $where['mobile'] = input("post.mobile");

            $phone = new UserModel();
            $info = $phone->phoneVailate($where);
            if($info){
                return json_encode(1);
            }else{
                return json_encode(0);
            }
        }
    }
}